#include "Materials.h"

std::vector<SceneMaterial *> Materials::MaterialList;

void Materials::SetMaterials(int shape, SceneMaterial* _mat, SceneMaterial* _mat1 ,SceneMaterial* _mat2 ){

	if ( shape == 0 )
		MaterialList.clear();
	MaterialList.push_back( _mat );
	MaterialList.push_back(	(_mat1 == NULL) ? _mat : _mat1 );
	MaterialList.push_back(	(_mat2 == NULL) ? _mat : _mat2 );

}

SceneMaterial * Materials::GetMaterials(int shape,int vertex){

	return MaterialList[shape*3 + vertex];

}
	
